Optimal. Leaf size=42 \[ -\frac{\cot ^4(a+b x)}{4 b}+\frac{\cot ^2(a+b x)}{2 b}+\frac{\log (\sin (a+b x))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0210047, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3473, 3475} \[ -\frac{\cot ^4(a+b x)}{4 b}+\frac{\cot ^2(a+b x)}{2 b}+\frac{\log (\sin (a+b x))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3473
Rule 3475
Rubi steps
\begin{align*} \int \cot ^5(a+b x) \, dx &=-\frac{\cot ^4(a+b x)}{4 b}-\int \cot ^3(a+b x) \, dx\\ &=\frac{\cot ^2(a+b x)}{2 b}-\frac{\cot ^4(a+b x)}{4 b}+\int \cot (a+b x) \, dx\\ &=\frac{\cot ^2(a+b x)}{2 b}-\frac{\cot ^4(a+b x)}{4 b}+\frac{\log (\sin (a+b x))}{b}\\ \end{align*}
Mathematica [A] time = 0.105084, size = 46, normalized size = 1.1 \[ \frac{-\cot ^4(a+b x)+2 \cot ^2(a+b x)+4 \log (\tan (a+b x))+4 \log (\cos (a+b x))}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.013, size = 39, normalized size = 0.9 \begin{align*}{\frac{ \left ( \cot \left ( bx+a \right ) \right ) ^{2}}{2\,b}}-{\frac{ \left ( \cot \left ( bx+a \right ) \right ) ^{4}}{4\,b}}+{\frac{\ln \left ( \sin \left ( bx+a \right ) \right ) }{b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.9705, size = 51, normalized size = 1.21 \begin{align*} \frac{\frac{4 \, \sin \left (b x + a\right )^{2} - 1}{\sin \left (b x + a\right )^{4}} + 2 \, \log \left (\sin \left (b x + a\right )^{2}\right )}{4 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.34446, size = 188, normalized size = 4.48 \begin{align*} -\frac{4 \, \cos \left (b x + a\right )^{2} - 4 \,{\left (\cos \left (b x + a\right )^{4} - 2 \, \cos \left (b x + a\right )^{2} + 1\right )} \log \left (\frac{1}{2} \, \sin \left (b x + a\right )\right ) - 3}{4 \,{\left (b \cos \left (b x + a\right )^{4} - 2 \, b \cos \left (b x + a\right )^{2} + b\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.7029, size = 61, normalized size = 1.45 \begin{align*} \begin{cases} \frac{\log{\left (\sin{\left (a + b x \right )} \right )}}{b} + \frac{\cos ^{2}{\left (a + b x \right )}}{2 b \sin ^{2}{\left (a + b x \right )}} - \frac{\cos ^{4}{\left (a + b x \right )}}{4 b \sin ^{4}{\left (a + b x \right )}} & \text{for}\: b \neq 0 \\\frac{x \cos ^{5}{\left (a \right )}}{\sin ^{5}{\left (a \right )}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.21436, size = 221, normalized size = 5.26 \begin{align*} -\frac{\frac{{\left (\frac{12 \,{\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} + \frac{48 \,{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} + 1\right )}{\left (\cos \left (b x + a\right ) + 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) - 1\right )}^{2}} + \frac{12 \,{\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} + \frac{{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} - 32 \, \log \left (\frac{{\left | -\cos \left (b x + a\right ) + 1 \right |}}{{\left | \cos \left (b x + a\right ) + 1 \right |}}\right ) + 64 \, \log \left ({\left | -\frac{\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} + 1 \right |}\right )}{64 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]